<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<title>管理员登录页</title>
<link rel="stylesheet" href="/layui/css/layui.css">
<style type="text/css">
.formstyle{
		position: relative;
		top: 50px;
		width:400px;
		margin: auto;
		padding: auto;
		font-family: cursive;
	}


</style>
</head>
<body>
	<h2 class="layui-h">管理员登录页</h2>
	
<div class="formstyle">
	<form class="layui-form" action="/admin/login" method="post">
		<div class="layui-form-item" align="center">
			<label class="layui-form-label">用户名:</label>
			<div class="layui-input-inline">
				<input type="text" name="name" required lay-verify="required"
					placeholder="用户名" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item" >
			<label class="layui-form-label">密码:</label>
			<div class="layui-input-inline" >
				<input type="password" name="pwd" required
					lay-verify="required" placeholder="密码" autocomplete="off"
					class="layui-input">
			</div>
		</div>
		<div class="layui-form-item" align="center">
			<button class="layui-btn" lay-submit >登录</button>
			<button class="layui-btn" onclick="toReg()" >注册</button>
		</div>
	</form>
</div>
</body>

<script src="/layui/layui.js"></script>
<script>
layui.use(['form', 'upload'], function(){  //如果只加载一个组件，可以不填数组。如：layui.use('form')
  var form = layui.form() //获取form组件
  ,upload = layui.uplaod; //获取upload组件
  
 
});

function toReg(){
	location.href="/register.jsp";
}
</script>
</html>